/*
 * cMono.h
 *
 *  Created on: Nov 7, 2014
 *      Author: root
 */

#ifndef CMONO_H_
#define CMONO_H_

#include "../manejadorGrilla.h"
#include "../clasesAuxiliares/SocketCommunication.h"

class cMono {
public:
	int x;
	int y;
	int height;
	int witdh;
	int type;
	char id[10];
	int sentido;
	int restrasoMovimiento;
	SocketCommunication * socket_J1;
	SocketCommunication * socket_J2;

	cMono();
	virtual ~cMono();

	void mover(manejadorGrilla &grilla);
	void inicializar (manejadorGrilla &grilla,int id, SocketCommunication *socket_J1, SocketCommunication *socket_J2);

private:
	void moverIzquierda(manejadorGrilla &grilla);
	void moverDerecha(manejadorGrilla &grilla);
};

#endif /* CMONO_H_ */
